package com.zz.Interface.studentMannger;

import java.util.ArrayList;

public class ClassManager {
    ArrayList<Student> students = new ArrayList <>();
    StudentOperator operator = new Operator2();

    public ClassManager(){
        students.add(new Student("波妞", '女', 89));
        students.add(new Student("宗介", '男', 99));
        students.add(new Student("Tom", '男', 79));
        students.add(new Student("杰瑞", '男', 90));
        students.add(new Student("彭于晏", '男', 85));
        students.add(new Student("李亦非", '女', 86));
    }

    public void printInfo() {
        operator.printAllInfo(students);
    }

    public void printScore(){
        operator.printAverageScore(students);
    }
}
